package info.jafe.common.util;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

import info.jafe.common.context.ContextProvider;

/**
 * Created by jafe chang on 2016/12/17.
 */
public class ImageUtils {
    public static void load(String url, ImageView imageView) {
        Glide.with(ContextProvider.getContext())
                .load(url)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .into(imageView);
    }
}
